package com.boarsoft.boar.message.demo.store;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.boarsoft.boar.message.demo.entity.BatchSmsDebit;
import com.boarsoft.dao.sharding.bean.DaoSharding;
import com.boarsoft.hibernate.biz.SimpleBizImpl;

@Component("batchMsgBiz")
@DaoSharding(policy = "default")
public class BatchMsgBizImpl extends SimpleBizImpl implements BatchMsgBiz {
	@Override
	@Transactional
	@DaoSharding(policy = "default", index = 0)
	public String append(BatchSmsDebit o) {
		dao.save(o);
		return o.getId();
	}
}
